projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b337be
)
arch/powerpc/lib/bat_rw.c: Fix GCC 4.6 build warning
author
Wolfgang Denk
<
[email protected]
>
Fri, 4 Nov 2011 15:55:59 +0000
(15:55 +0000)
committer
Wolfgang Denk
<
[email protected]
>
Mon, 7 Nov 2011 21:16:55 +0000
(22:16 +0100)
Fix:
bat_rw.c: In function 'write_bat':
bat_rw.c:38:6: warning: variable 'batn' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <
[email protected]
>
Cc: Kumar Gala <
[email protected]
>
Cc: Andy Fleming <
[email protected]
>
arch/powerpc/lib/bat_rw.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/lib/bat_rw.c
b/arch/powerpc/lib/bat_rw.c
index c48c24015153ade7180d6accc9e62968127e792d..113c293c03618dd25bd9cecbb61b7e31fd711f7b 100644
(file)
--- a/
arch/powerpc/lib/bat_rw.c
+++ b/
arch/powerpc/lib/bat_rw.c
@@
-26,6
+26,7
@@
#include <asm/processor.h>
#include <asm/mmu.h>
#include <asm/io.h>
+#include <linux/compiler.h>
#ifdef CONFIG_ADDR_MAP
#include <addr_map.h>
@@
-35,7
+36,7
@@
DECLARE_GLOBAL_DATA_PTR;
int write_bat (ppc_bat_t bat, unsigned long upper, unsigned long lower)
{
- int batn = -1;
+
__maybe_unused
int batn = -1;
sync();